﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Sino.CapacityCloud.Services.Models
{

    public class TmsServiceBusOptions
    {

        public string BaseUrl { get; set; }

        public string AppId { get; set; }

        public string AppSecrect { get; set; }

        public uint AccessTimeoutRetries { get; set; } = Sino.CapacityCloud.Services.TmsServiceBus.DefaultAccessTimeoutRetries;

        public TmsServiceBusOptions()
            : this("", "", "")
        {
        }

        public TmsServiceBusOptions(string baseUrl, string appId, string appSecrect, uint accessTimeoutRetries = Sino.CapacityCloud.Services.TmsServiceBus.DefaultAccessTimeoutRetries)
        {
            this.BaseUrl = baseUrl;
            this.AppId = appId;
            this.AppSecrect = appSecrect;
            this.AccessTimeoutRetries = accessTimeoutRetries;
        }

    }

}